﻿using Abp.Domain.Entities;
using HiShing.TongDanGuanJia.Authorization.Users;
using System.ComponentModel.DataAnnotations.Schema;

namespace HiShing.TongDanGuanJia.Devices
{
    public class UserDevice : Entity
    {
        public long UserId { get; set; }
        public string DeviceId { get; set; }

        [ForeignKey(nameof(DeviceId))]
        public Device Device { get; set; }

        [ForeignKey(nameof(UserId))]
        public User User { get; set; }
    }
}
